package com.dlws.modules.index.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dlws.modules.index.entity.Admin;
import com.dlws.modules.index.mapper.AdminMapper;

/**
 * 
 * 描述：
 * 创建人： 魏泽超
 * 创建时间: 2016-5-30 下午4:24:24
 * @version
 */
@Service
public class AdminServiceImpl implements AdminService{
	
	@Autowired
	private AdminMapper adminMapper;

	@Override
	public Admin queryOne(Admin record) {
		// TODO Auto-generated method stub
		return adminMapper.selectOne(record);
	}

	@Override
	public List<Admin> queryAll(Admin record) {
		// TODO Auto-generated method stub
		return adminMapper.select(record);
	}

	@Override
	public int queryCount(Admin record) {
		// TODO Auto-generated method stub
		return adminMapper.selectCount(record);
	}

	@Override
	public Admin queryByPrimaryKey(Object key) {
		// TODO Auto-generated method stub
		return adminMapper.selectByPrimaryKey(key);
	}

	@Override
	public int add(Admin record) {
		// TODO Auto-generated method stub
		return adminMapper.insert(record);
	}

	@Override
	public int addSelective(Admin record) {
		// TODO Auto-generated method stub
		return adminMapper.insertSelective(record);
	}

	@Override
	public int delete(Admin record) {
		// TODO Auto-generated method stub
		return adminMapper.delete(record);
	}

	@Override
	public int deleteByPrimaryKey(Object key) {
		// TODO Auto-generated method stub
		return adminMapper.deleteByPrimaryKey(key);
	}

	@Override
	public int updateByPrimaryKey(Admin record) {
		// TODO Auto-generated method stub
		return adminMapper.updateByPrimaryKey(record);
	}

	@Override
	public int updateByPrimaryKeySelective(Admin record) {
		// TODO Auto-generated method stub
		return adminMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int queryCountByExample(Admin example) {
		// TODO Auto-generated method stub
		return adminMapper.selectCountByExample(example);
	}

	@Override
	public List<Admin> queryByExample(Admin example) {
		// TODO Auto-generated method stub
		return adminMapper.selectByExample(example);
	}

}
